
#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

using Microsoft.Xna.Framework.Input;

using JigLibX.Collision;
using JigLibX.Physics;
using JigLibX.Geometry;
using JigLibX.Math;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Game1
{
    public class Fire : SphereObject
    {
        
        private Vector3 initialPosition;
        private float speed;

        public Fire(Vector3 initialPosition,Matrix orientation, Camera camera, float speed)
            : base(Base.Content.Load<Model>("Models\\bomb"),
                   1.0f, orientation, 
                    initialPosition, camera)
        {
            Vector3 vet = Vector3.UnitZ;
            this.initialPosition = initialPosition;
            this.speed = speed;
            vet = -Vector3.Transform(vet, orientation);
            vet *= speed;

            body.Velocity = vet;
            
            Base.Singleton.Components.Add(this);
            
            
        }
   
      }
}
